package com.yanghang.service;

import com.github.pagehelper.PageInfo;
import com.yanghang.entity.News;

import java.util.List;

public interface NewsService {
    List<News>selectAll();
    PageInfo<News>selectByPage(int pageNum,int pageSize);
    void insertNews(News news);
    void deleteNews(int id);
    void updateNews(News news);
}
